{include file="public/header" /}
<body>
<div class="layui-tab-brief main-tab-container">
    <ul class="layui-tab-title main-tab-title">
        <a href="#"><li class="layui-this">基本设置</li></a>
        <a href="{:url('Sys/logo')}"><li>LOGO设置</li></a>
        <div class="main-tab-item">站点信息</div>

    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form" name="web_site" method="post" onsubmit="return false">
                <div class="layui-tab layui-tab-card">
                    <ul class="layui-tab-title">
                        <li class="layui-this">站点设置</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <div class="layui-form-item">

                                <div class="layui-form-mid layui-word-aux"></div>
                            </div>
                            {volist name="site" id="vo"}
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站名称</label>
                                <div class="layui-input-inline input-custom-width">
                                    <input type="text" name="name" value="{$vo.name}" lay-verify="required" autocomplete="off" placeholder="请输入网站名称" class="layui-input">
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">备案信息</label>
                                <div class="layui-input-inline input-custom-width">
                                    <input type="text" name="icp" value="{$vo.icp}" lay-verify="required" autocomplete="off" placeholder="请输入备案号" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">版权设置</label>
                                <div class="layui-input-inline input-custom-width">
                                    <input type="text" name="copyright" value="{$vo.copyright}" lay-verify="required" autocomplete="off" placeholder="请输入版权信息" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                            <label class="layui-form-label">站点统计</label>
                            <div class="layui-input-inline input-custom-width">
                                <input type="text" name="tongji" value="{$vo.tongji}" lay-verify="required" autocomplete="off" placeholder="请输入站点统计代码" class="layui-input">
                            </div>
                        </div>
                            {/volist}
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="web_set" type="button" id="web_site">立即修改</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        //按钮单击时执行
        $("#web_site").click(function(){
            $.ajax({
                url: "{:url('sys/site')}",
                data: $("form").serialize(),
                type: "POST",
                datatype:"json",
                success: function( result ) {
                    layer.open({
                        title: '信息'
                        ,content: '修改成功！'
                    });
                }
            });
        });
    });
</script>
<script type="text/javascript">
    layui.use(['element', 'form'], function(){
        var element = layui.element()
            ,form = layui.form()
            ,jq = layui.jquery;
    })
</script>
</body>
</html>

